Fix a nonsense spec for dry_run

Akinori MUSHA 9 years ago
parent
commit
cb0333ee92
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spec/controllers/agents_controller_spec.rb

+ 1 - 1
spec/controllers/agents_controller_spec.rb

@@ -372,7 +372,7 @@ describe AgentsController do
372 372
       sign_in users(:bob)
373 373
       agent = agents(:bob_weather_agent)
374 374
       expect {
375
-        post :dry_run, id: agents(:bob_website_agent), agent: valid_attributes(name: 'New Name')
375
+        post :dry_run, id: agent, agent: valid_attributes(name: 'New Name')
376 376
       }.not_to change {
377 377
         [users(:bob).agents.count, users(:bob).events.count, users(:bob).logs.count, agent.name, agent.updated_at]
378 378
       }